package com.ymatou.iapi.sellerproduct.service;

import java.util.Arrays;

import org.json.JSONObject;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.MapUtil;

public class UpdateProductCheckStatusCall extends YmatouAutoTestCall{
	private static String opurl ="/api/SellerProduct/UpdateProductCheckStatus";
	
	public UpdateProductCheckStatusCall() {
		super(EnvSetup.getSystemUrl("sellerproduct_iapi"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	
	public JSONObject call(int sellerId,String productId){
		return this.callAndGetReturnData(MapUtil.hashMap("ProductList[0]->SellerId",sellerId,
				"ProductList[0]->ProductId",productId));
	}
	
	
	public static void main(String[] args) throws Exception {
		String aa = "1,2,3,4";
		System.out.println(Arrays.asList(aa.split(",")).stream().anyMatch(x->x.equals(String.valueOf(1))));
				 
	}
	
	
	
	
	
}
